
package pooproj.util;

import java.sql.Connection;
import pooproj.erro.ConexaoException;

/**
 *
 * @author Daniella
 */
public interface GerenciadorConexao {
    
    /**
     * Retorna conexão com BD
     * @return conexão
     * @throws ConexaoException 
     */
    public Connection conectar() throws ConexaoException;
    
    /**
     * Encerra conexão com BD
     * @param con
     * @throws ConexaoException 
     */
    public void desconectar(Connection con) throws ConexaoException;
    
}
